package ip.cynic.adapter.example2;

public class ComputerClient {

    public static void main(String[] args) {
        HdmiAdaptee hdmiAdaptee = new HdmiAdaptee(); // hdmi 线
        VGAAdaptee vgaAdaptee = new VGAAdaptee();// vga 线


        VGATarget target = new HdmiVGAAdapter(hdmiAdaptee,vgaAdaptee); // hdmi 转 VGA 口
        target.vgaShow();

        HdmiTarget hdmiTarget = new HdmiVGAAdapter(hdmiAdaptee,vgaAdaptee); // vga 转hdmi
        hdmiTarget.hdmiShow();
    }

}
